//系统-消息
import React, { Component } from 'react';
import {
    View,
} from 'react-native';



var Dimensions = require('Dimensions');
var width = Dimensions.get('window').width;
var height = Dimensions.get('window').height;
import News_top from './news_top';
import News_body from './news_body';

export default class Newsall extends Component {
    render() {
        return (
            <View style={{backgroundColor:'#ffffff',flex:1}}>
                <News_top navigation={this.props.navigation} />
                <News_body
                    navigation={this.props.navigation}
                />
            </View>
        )
    }

    componentWillUnmount() {
        if(this.props.navigation.state.params !== undefined){
            this.props.navigation.state.params.noReadCount();
        }
    }

}